The Job Log Explorer relies on regular expressions to parse job logs language independently. The regular expressions are hard coded in the source code, but can be overridden with file jobLogParser.properties. Refer to the preferences for details.
The parser uses four regular expressions to retrieve the job log information from different parts of the job log. All regular expressions used by the parser are shown in file example_jobLogParser_vX.X.properties. The file is created in the following directory when the Job Log Explorer is started for the first time:
Usually a job log page header looks like this:
5770SS1 V7R2M0 140418 Display Job Log PUB400 03.11.16 14:58:40 CET Page 1
The following attributes are used to identify the page header:
Attribute | Example Value |
---|---|
Licensed Program | 5770SS1 |
Release | V7R2M0 |
System Name | PUB400 |
Date | 03.11.16 |
Time | 14:58:40 |
Time Zone | CET |
Page Number Label | Page |
Page Number | 1 |
The page header attributes specify the job name and the job description like this:
Job name . . . . . . . . . . : TRADDATZA1 User . . . . . . : RADDATZ Number . . . . . . . . . . . : 245231 Job description . . . . . . : QDFTJOBD Library . . . . . : QGPL
The following attributes are used to identify a header attribute:
Attribute | Example Value |
---|---|
Attribute Name | Job name |
Attribute Value | TRADDATZA1 |
The basic message attributes are retrieved from the first line of a job log message:
CPCA980 Completion 00 19.12.16 11:52:58,698357 QP0ZADDE QSYS *STMT START#RZ RADDATZ *STMT
The following attributes are retrieved from the first line of a message:
Attribute | Example Value |
---|---|
ID | CPCA980 |
Type | Completion |
Severity | 00 |
Date Sent | 19.12.16 |
Time Sent | 11:52:58,698357 |
From Program | QP0ZADDE |
From Library | QSYS |
From Statement | *STMT |
To Program | START#RZ |
To Library | RADDATZ |
To Statement | *STMT |
The message continuation lines contain information about the sending and receiving programs and the message text and help text:
From module . . . . . . . . : QP0ZADDE From procedure . . . . . . : main Statement . . . . . . . . . : 226 To module . . . . . . . . . : START#RZ To procedure . . . . . . . : START#RZ Statement . . . . . . . . . : 3200 Message . . . . : Environment variable added. Cause . . . . . : Environment variable 'strgh.log4rpg' has been added.
The following attributes are retrieved from the message continuation lines:
Attribute | Example Value |
---|---|
From Module | QP0ZADDE |
From Procedure | main |
From Statement | 226 |
To Module | START#RZ |
To Procedure | START#RZ |
To Statement | 3200 |
Message Text | Environment variable added. |
Message Help | Environment variable 'strgh.log4rpg' has been added. |
The parser relies on the sequence of the continuation lines and it assumes that there are either: